<pre style="line-height: 100%;font-family:monospace;background-color:#ffffff; border-width:0.01mm; border-color:#000000; border-style:solid;padding:4px;font-size:10pt;"><span style="color:#808080;background-color:#ffffff;">&lt;!--
 Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
--&gt;
</span><span style="background-color:#ffffff;">&lt;%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %&gt;

</span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">html</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">  </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">head</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">    </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">title</span><span style="background-color:#efefef;">&gt;</span><span style="background-color:#ffffff;">JSP 2.0 Expression Language - Implicit Objects</span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">title</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">  </span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">head</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">  </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">body</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">    </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">h1</span><span style="background-color:#efefef;">&gt;</span><span style="background-color:#ffffff;">JSP 2.0 Expression Language - Implicit Objects</span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">h1</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">    </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">hr</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">    This example illustrates some of the implicit objects available
    in the Expression Lanaguage.  The following implicit objects are
    available (not all illustrated here):
    </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">ul</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">      </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">li</span><span style="background-color:#efefef;">&gt;</span><span style="background-color:#ffffff;">pageContext - the PageContext object</span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">li</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">      </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">li</span><span style="background-color:#efefef;">&gt;</span><span style="background-color:#ffffff;">pageScope - a Map that maps page-scoped attribute names to
          their values</span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">li</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">      </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">li</span><span style="background-color:#efefef;">&gt;</span><span style="background-color:#ffffff;">requestScope - a Map that maps request-scoped attribute names
          to their values</span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">li</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">      </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">li</span><span style="background-color:#efefef;">&gt;</span><span style="background-color:#ffffff;">sessionScope - a Map that maps session-scoped attribute names
          to their values</span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">li</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">      </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">li</span><span style="background-color:#efefef;">&gt;</span><span style="background-color:#ffffff;">applicationScope - a Map that maps application-scoped attribute
          names to their values</span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">li</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">      </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">li</span><span style="background-color:#efefef;">&gt;</span><span style="background-color:#ffffff;">param - a Map that maps parameter names to a single String
          parameter value</span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">li</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">      </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">li</span><span style="background-color:#efefef;">&gt;</span><span style="background-color:#ffffff;">paramValues - a Map that maps parameter names to a String[] of
          all values for that parameter</span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">li</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">      </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">li</span><span style="background-color:#efefef;">&gt;</span><span style="background-color:#ffffff;">header - a Map that maps header names to a single String
          header value</span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">li</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">      </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">li</span><span style="background-color:#efefef;">&gt;</span><span style="background-color:#ffffff;">headerValues - a Map that maps header names to a String[] of
          all values for that header</span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">li</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">      </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">li</span><span style="background-color:#efefef;">&gt;</span><span style="background-color:#ffffff;">initParam - a Map that maps context initialization parameter
          names to their String parameter value</span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">li</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">      </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">li</span><span style="background-color:#efefef;">&gt;</span><span style="background-color:#ffffff;">cookie - a Map that maps cookie names to a single Cookie object.</span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">li</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">    </span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">ul</span><span style="background-color:#efefef;">&gt;

</span><span style="background-color:#ffffff;">    </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">blockquote</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">      </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">u</span><span style="background-color:#efefef;">&gt;&lt;</span><span style="color:#000080;background-color:#efefef;">b</span><span style="background-color:#efefef;">&gt;</span><span style="background-color:#ffffff;">Change Parameter</span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">b</span><span style="background-color:#efefef;">&gt;&lt;/</span><span style="color:#000080;background-color:#efefef;">u</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">      </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">form</span><span style="background-color:#efefef;"> </span><span style="color:#0000ff;background-color:#efefef;">action=</span><span style="color:#008000;background-color:#efefef;">"implicit-objects.jsp"</span><span style="background-color:#efefef;"> </span><span style="color:#0000ff;background-color:#efefef;">method=</span><span style="color:#008000;background-color:#efefef;">"GET"</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">      foo = </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">input</span><span style="background-color:#efefef;"> </span><span style="color:#0000ff;background-color:#efefef;">type=</span><span style="color:#008000;background-color:#efefef;">"text"</span><span style="background-color:#efefef;"> </span><span style="color:#0000ff;background-color:#efefef;">name=</span><span style="color:#008000;background-color:#efefef;">"foo"</span><span style="background-color:#efefef;"> </span><span style="color:#0000ff;background-color:#efefef;">value=</span><span style="color:#008000;background-color:#efefef;">"${fn:escapeXml(param["</span><span style="color:#0000ff;background-color:#efefef;">foo</span><span style="background-color:#ffffff;">"])}"&gt;
          </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">input</span><span style="background-color:#efefef;"> </span><span style="color:#0000ff;background-color:#efefef;">type=</span><span style="color:#008000;background-color:#efefef;">"submit"</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">      </span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">form</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">      </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">br</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">      </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">code</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">        </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">table</span><span style="background-color:#efefef;"> </span><span style="color:#0000ff;background-color:#efefef;">border=</span><span style="color:#008000;background-color:#efefef;">"1"</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">          </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">thead</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">        </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">td</span><span style="background-color:#efefef;">&gt;&lt;</span><span style="color:#000080;background-color:#efefef;">b</span><span style="background-color:#efefef;">&gt;</span><span style="background-color:#ffffff;">EL Expression</span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">b</span><span style="background-color:#efefef;">&gt;&lt;/</span><span style="color:#000080;background-color:#efefef;">td</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">        </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">td</span><span style="background-color:#efefef;">&gt;&lt;</span><span style="color:#000080;background-color:#efefef;">b</span><span style="background-color:#efefef;">&gt;</span><span style="background-color:#ffffff;">Result</span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">b</span><span style="background-color:#efefef;">&gt;&lt;/</span><span style="color:#000080;background-color:#efefef;">td</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">      </span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">thead</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">      </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">tr</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">        </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">td</span><span style="background-color:#efefef;">&gt;</span><span style="background-color:#ffffff;">\${param.foo}</span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">td</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">        </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">td</span><span style="background-color:#efefef;">&gt;</span><span style="background-color:#ffffff;">${fn:escapeXml(param["foo"])}</span><span style="color:#0000ff;background-color:#ffffff;">&nbsp;</span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">td</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">      </span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">tr</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">      </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">tr</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">        </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">td</span><span style="background-color:#efefef;">&gt;</span><span style="background-color:#ffffff;">\${param["foo"]}</span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">td</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">        </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">td</span><span style="background-color:#efefef;">&gt;</span><span style="background-color:#ffffff;">${fn:escapeXml(param["foo"])}</span><span style="color:#0000ff;background-color:#ffffff;">&nbsp;</span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">td</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">      </span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">tr</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">      </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">tr</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">        </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">td</span><span style="background-color:#efefef;">&gt;</span><span style="background-color:#ffffff;">\${header["host"]}</span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">td</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">        </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">td</span><span style="background-color:#efefef;">&gt;</span><span style="background-color:#ffffff;">${fn:escapeXml(header["host"])}</span><span style="color:#0000ff;background-color:#ffffff;">&nbsp;</span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">td</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">      </span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">tr</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">      </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">tr</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">        </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">td</span><span style="background-color:#efefef;">&gt;</span><span style="background-color:#ffffff;">\${header["accept"]}</span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">td</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">        </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">td</span><span style="background-color:#efefef;">&gt;</span><span style="background-color:#ffffff;">${fn:escapeXml(header["accept"])}</span><span style="color:#0000ff;background-color:#ffffff;">&nbsp;</span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">td</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">      </span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">tr</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">      </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">tr</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">        </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">td</span><span style="background-color:#efefef;">&gt;</span><span style="background-color:#ffffff;">\${header["user-agent"]}</span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">td</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">        </span><span style="background-color:#efefef;">&lt;</span><span style="color:#000080;background-color:#efefef;">td</span><span style="background-color:#efefef;">&gt;</span><span style="background-color:#ffffff;">${fn:escapeXml(header["user-agent"])}</span><span style="color:#0000ff;background-color:#ffffff;">&nbsp;</span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">td</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">      </span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">tr</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">    </span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">table</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">      </span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">code</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">    </span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">blockquote</span><span style="background-color:#efefef;">&gt;
</span><span style="background-color:#ffffff;">  </span><span style="background-color:#efefef;">&lt;/</span><span style="color:#000080;background-color:#efefef;">body</span><span style="background-color:#efefef;">&gt;
&lt;/</span><span style="color:#000080;background-color:#efefef;">html</span><span style="background-color:#efefef;">&gt;</span></pre>